package br.com.orion.sga.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.orion.sga.model.dao.EmpresaDao;
import br.com.orion.sga.model.entities.Empresa;

@Service
public class EmpresaService {

	@Autowired
	private EmpresaDao empresaDao;
	
	/**
	 * getById
	 * @param id
	 * @return
	 */
	public Empresa getById(Long id) {
		return empresaDao.getById(id);
	}
	
	/**
	 * getCompanyByName
	 * @param company
	 * @return
	 */
	public Empresa getCompanyByName(String company) {
		return empresaDao.getCompanyByName(company);
	}
	
	
	
}
